using System;

namespace Util.Microservices.Dapr.Tests.Samples; 

/// <summary>
/// 客户参数
/// </summary>
public class CustomerDto {
    /// <summary>
    /// 编码
    ///</summary>
    [Description( "编码" )]
    [MaxLength( 100 )]
    public string Code { get; set; }
    /// <summary>
    /// 姓名
    ///</summary>
    [Description( "姓名" )]
    [MaxLength( 200 )]
    public string Name { get; set; }
    /// <summary>
    /// 昵称
    ///</summary>
    [Description( "昵称" )]
    [MaxLength( 50 )]
    public string Nickname { get; set; }
    /// <summary>
    /// 出生日期
    ///</summary>
    [Description( "出生日期" )]
    public DateTime? Birthday { get; set; }
    /// <summary>
    /// 手机号
    ///</summary>
    [Description( "手机号" )]
    [MaxLength( 50 )]
    public string Phone { get; set; }
    /// <summary>
    /// 电子邮件
    ///</summary>
    [Description( "电子邮件" )]
    [MaxLength( 500 )]
    public string Email { get; set; }
    /// <summary>
    /// 创建时间
    ///</summary>
    [Description( "创建时间" )]
    public DateTime? CreationTime { get; set; }
    /// <summary>
    /// 创建人
    ///</summary>
    [Description( "创建人" )]
    public Guid? CreatorId { get; set; }
    /// <summary>
    /// 最后修改时间
    ///</summary>
    [Description( "最后修改时间" )]
    public DateTime? LastModificationTime { get; set; }
    /// <summary>
    /// 最后修改人
    ///</summary>
    [Description( "最后修改人" )]
    public Guid? LastModifierId { get; set; }
    /// <summary>
    /// 是否删除
    ///</summary>
    [Description( "是否删除" )]
    public bool IsDeleted { get; set; }
    /// <summary>
    /// 版本号
    ///</summary>
    [Description( "版本号" )]
    public byte[] Version { get; set; }
}

/// <summary>
/// 客户参数
/// </summary>
public class CustomerDto2 : CustomerDto, IDataKey,IDataType, IETag {
    public string Id { get; set; }
    public string ETag { get; set; }
    public string DataType { get; set; }
    public ProductDto Product { get; set; }
}